package telas;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class TelaEscolha extends JFrame {

	private JPanel contentPane;
	private JButton btnLoginUsuario;
	private JButton btnLoginBib;
	private LoginBiblioteca  loginBiblioteca = new LoginBiblioteca();
	private LoginUser  loginUser = new LoginUser();
	

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					TelaEscolha frame = new TelaEscolha();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public TelaEscolha() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		btnLoginUsuario = new JButton("Login Usuario");
		btnLoginUsuario.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				

				loginUser.setVisible(true);
				
			}
		});
		btnLoginUsuario.setBounds(10, 28, 422, 95);
		contentPane.add(btnLoginUsuario);
		
		btnLoginBib = new JButton("Login Bibliotecaria");
		btnLoginBib.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				
				loginBiblioteca.setVisible(true);
				
				
			}
		});
		btnLoginBib.setBounds(10, 153, 422, 95);
		contentPane.add(btnLoginBib);
	}

}
